<template>
  <div class="box">
    <h1>he is children</h1>
    <div>我的名字是：{{ name }}</div>
    <button @click="changeName('陈世美')">修改</button>

  </div>
</template>

<script>
export default {
    data(){
        return {
            name : "尹清林"
        }
    },
    methods:{
        changeName(name){
            this.name = name;
        }
    }
};
</script>

<style>
</style>